package com.juc.concurrency.basic.createthread;

/**
 * @author huangweiyue
 * @description implements Runnable 无法拿到任务结果
 * @date Created in 2021-07-28
 */
public class ImplementsRunnable {
    public static class RunnableTask implements Runnable{

        @Override
        public void run() {
            System.out.println("I am a child thread");
        }
    }

    public static void main(String[] args) {
        RunnableTask task=new RunnableTask();
        new Thread(task).start();
        new Thread(task).start();
    }
}
